// UserMapper.java
package com.example.mapper;

import com.example.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User selectByOpenid(String openid);
    User selectById(Integer id);
    void insert(User user);
    void update(User user);
    void updateUserInfoByOpenid(@Param("openid") String openid,
                                @Param("nickname") String nickname,
                                @Param("avatar") String avatar);
}